All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface sun.security.ExportControl

public interface ExportControl
This interface is used to provide compile time support for building two versions of a software package. One is a full-strength version, for "US Domestic" use. The other version is a weakened "global" version, which may be exported in compliance with US Export regulations.

As a rule, source code only tests for an uncontrolled version in order to add functionality to US domestic versions. Otherwise, US domestic and global versions would not interoperate. That is, most source code should look like this:

	if (ExportControl.isUnControlled) {
		... do stuff that global versions can't do
	}
 

NOTE that export regulations are subject to interpretation. Individual rulings are provided on a product-by-product, and sometimes even on a customer-by-customer basis. Don't change lines of code which check for export control status without understanding the legal ramifications of such changes.


Variable Index

 o isUnControlled
This compile-time constant is true if and only if the release being compiled is allowed to have technologies which, when exported, are subject to ITAR regulations.

Variables

 o isUnControlled
 public static final boolean isUnControlled
This compile-time constant is true if and only if the release being compiled is allowed to have technologies which, when exported, are subject to ITAR regulations.

The value is set to false in order to disable features such as strong encryption, key exchange, or some kinds of data compression.


All Packages  Class Hierarchy  This Package  Previous  Next  Index